package site.teamo.biu.net.client.controller.model.system_config;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

/**
 * @author haocongshun
 * @date 2023/02/22 9:28:48
 */
@Data
@Accessors(chain = true)
public class CenterServerInfo {
    @NotBlank(message = "服务中心主机不能为空")
    private String serverHost;

    @Range(min = 100L, max = 65535, message = "服务中心端口要求在100-65535之间")
    private int serverPort;
    @Size(min = 16, message = "接入服务中心token不合法")
    private String token;
}
